//
// Created by 12992 on 24-10-13.
//

#ifndef DROPUPLOAD_H
#define DROPUPLOAD_H

#include <QWidget>

namespace gui::widgets
{
    QT_BEGIN_NAMESPACE

    namespace Ui
    {
        class DropUpload;
    }

    QT_END_NAMESPACE

    class DropUpload : public QWidget
    {
    private:
    Q_OBJECT

    public:
        explicit DropUpload(QWidget* parent = nullptr);

        ~DropUpload() override;

    signals:

        void fileUploaded(const QString& path);

    protected:
        void paintEvent(QPaintEvent* event) override;

        void dragEnterEvent(QDragEnterEvent* event) override;


        void dropEvent(QDropEvent* event) override;

    private:
        Ui::DropUpload* ui;
    };
} // gui::widgets

#endif //DROPUPLOAD_H
